/**
 * @file		common_memory.h
 * @brief		common memory api
 * @note		None
 * @attention	None
 * 
 * <B><I>Copyright 2015 Socionext Inc.</I></B>
 */
#ifndef _COMMON_MEMORY_H_
#define _COMMON_MEMORY_H_

#include "sdram_map_define.h"

//--------------------------------------------------------------
// Definition
//--------------------------------------------------------------
#ifndef CO_ASM_MODE
//--------------------------------------------------------------
// Typedef struct
//--------------------------------------------------------------
// Memory Type
typedef struct {
	unsigned long num;
	struct {
		unsigned long adr;
		unsigned long siz;
	} data[31];
	unsigned long reserved;
} T_COMMON_MEMORY;

#ifdef __cplusplus
extern "C" {
#endif
//--------------------------------------------------------------
// Global Function
//--------------------------------------------------------------
void common_memory_set( void );


#ifdef __cplusplus
}
#endif
#endif	// CO_ASM_MODE

#endif	// _COMMON_MEMORY_H_
